Add 'working' link for disabled agents

Glenn 'devalias' Grant 11 年之前
父节点
当前提交
b6aae538e3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/helpers/application_helper.rb

+ 2 - 2
app/helpers/application_helper.rb

@@ -9,11 +9,11 @@ module ApplicationHelper
9 9
 
10 10
   def working(agent)
11 11
     if agent.disabled?
12
-      '<span class="label label-warning">Disabled</span>'.html_safe
12
+      link_to '<span class="label label-warning">Disabled</span>'.html_safe, agent_path(agent)
13 13
     elsif agent.working?
14 14
       '<span class="label label-success">Yes</span>'.html_safe
15 15
     else
16
-      link_to '<span class="label btn-danger">No</span>'.html_safe, agent_path(agent, :tab => (agent.recent_error_logs? ? 'logs' : 'details'))
16
+      link_to '<span class="label label-danger">No</span>'.html_safe, agent_path(agent, :tab => (agent.recent_error_logs? ? 'logs' : 'details'))
17 17
     end
18 18
   end
19 19
 end